package com.bd.scm.domain.models.userType;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 *  员工类型表
 * </p>
 *
 * @author Mason
 * @since 2020-01-03
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("dt_ac_type")
public class DtAcType extends Model<DtAcType> {

    private static final long serialVersionUID = 1L;

    @TableId("ac_bh")
    private String acBh;
    @TableField("ac_name")
    private String acName;
    @TableField("money_type")
    private Integer moneyType;
    @TableField("reg_money")
    private BigDecimal regMoney;
    @TableField("reg_manage")
    private Integer regManage;
    @TableField("reg_ratio")
    private Integer regRatio;
    @TableField("ac_limit")
    private Integer acLimit;
    @TableField("ac_jssj")
    private Date acJssj;
    @TableField("ac_pass")
    private String acPass;
    @TableField("ac_pass_rule")
    private String acPassRule;
    @TableField("ac_subsidy")
    private Integer acSubsidy;
    @TableField("ac_sub_rule")
    private Integer acSubRule;
    @TableField("ac_sub_limit")
    private Integer acSubLimit;
    @TableField("discount_rate")
    private String discountRate;
    @TableField("money_max")
    private BigDecimal moneyMax;
    @TableField("money_min")
    private BigDecimal moneyMin;
    @TableField("day_max_m")
    private BigDecimal dayMaxM;
    @TableField("day_max_t")
    private Integer dayMaxT;
    @TableField("meal_max_m")
    private Integer mealMaxM;
    @TableField("meal_max_t")
    private Integer mealMaxT;
    @TableField("time_max_m")
    private BigDecimal timeMaxM;
    @TableField("ac_unit")
    private Integer acUnit;
    @TableField("ac_sub_unit")
    private Integer acSubUnit;
    @TableField("ac_earmark")
    private Integer acEarmark;
    @TableField("ac_sub_auto")
    private Integer acSubAuto;
    @TableField("sub_money")
    private BigDecimal subMoney;
    @TableField("ac_overdraw")
    private BigDecimal acOverdraw;
    @TableField("sub_max_m")
    private BigDecimal subMaxM;
    @TableField("make_max_m")
    private BigDecimal makeMaxM;
    @TableField("ac_time_state")
    private Integer acTimeState;
    @TableField("ac_each")
    private Integer acEach;
    @TableField("ac_each_rule")
    private Integer acEachRule;
    @TableField("ac_time_offset")
    private Integer acTimeOffset;
    @TableField("ac_time_type")
    private Integer acTimeType;
    @TableField("ac_time_day")
    private BigDecimal acTimeDay;
    @TableField("ac_time_mould")
    private Integer acTimeMould;
    @TableField("pass_max")
    private Integer passMax;
    @TableField("tally_max_m")
    private Integer tallyMaxM;
    @TableField("tally_max_t")
    private Integer tallyMaxT;
    @TableField("ac_regserial")
    private String acRegserial;
    private String regserial;
    @TableField("ac_timeeach_type")
    private Integer acTimeeachType;
    @TableField("ac_timeeach_day")
    private Integer acTimeeachDay;
    @TableField("ac_timeeach_mould")
    private Integer acTimeeachMould;
    @TableField("ac_each_auto")
    private Integer acEachAuto;


    @Override
    protected Serializable pkVal() {
        return this.acBh;
    }

}
